/*
    KDE Plugin for 3D Office Environment
    Copyright (C) 2011  Till Merker

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef OFFICEENVCONFIGFORM_H
#define OFFICEENVCONFIGFORM_H

#include <kcmodule.h>
#include <kwineffects.h>
#include <kshortcut.h>
#include <QtCore/QObject>
#include <QtGui/QGraphicsView>

#include "ui_OfficeEnvConfigForm.h"



namespace KWin
{

/* Configuration form to set up the office to use, activation hotkey etc */
    
class OfficeEnvConfigForm : public QWidget, public Ui::OfficeEnvConfigForm
{
    Q_OBJECT
    public:
        explicit OfficeEnvConfigForm(QWidget* parent);
};

class OfficeEnvConfig : public KCModule
    {
    Q_OBJECT
    public:
        explicit OfficeEnvConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
        ~OfficeEnvConfig();

    public slots:
        virtual void save();
        virtual void load();
        virtual void defaults();

    private:
        OfficeEnvConfigForm* m_ui;
        KActionCollection* m_actionCollection;
	void scanForOffices(std::string dirName);
    };

} // namespace


#endif // OFFICEENVCONFIGFORM_H
